<!DOCTYPE html>
<html>

<head>

<script >
function sql_redirect() {
   document.code_form.sql_cmd.value = opener.codeToRun();
   document.code_form.submit();
}
</script>

</head>

<body onload="sql_redirect()">

<form action="http://sqlcourse2.com/cgi-bin/sqlcmd-sqlcourse2.cgi"
      method="get" name="code_form"
>

   <input type="hidden" name="sql_cmd" value="">

</form>

</body>

</html>

